﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace 立式传动转台控制系统.Controll.Style
{
    /// <summary>
    /// AxisIndicator.xaml 的交互逻辑
    /// </summary>
    public partial class AxisIndicator : UserControl
    {
        public AxisIndicator()
        {
            InitializeComponent();
        }


        public bool EnableState
        {
            get { return (bool)GetValue(EnableStateProperty); }
            set { SetValue(EnableStateProperty, value); }
        }

        // Using a DependencyProperty as the backing store for EnableState.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty EnableStateProperty =
            DependencyProperty.Register("EnableState", typeof(bool), typeof(AxisIndicator), new PropertyMetadata(false));




        public bool ErrorState
        {
            get { return (bool)GetValue(ErrorStateProperty); }
            set { SetValue(ErrorStateProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ErrorState.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ErrorStateProperty =
            DependencyProperty.Register("ErrorState", typeof(bool), typeof(AxisIndicator), new PropertyMetadata(false));



        public bool LLimitState
        {
            get { return (bool)GetValue(LLimitStateProperty); }
            set { SetValue(LLimitStateProperty, value); }
        }

        // Using a DependencyProperty as the backing store for LLimitState.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty LLimitStateProperty =
            DependencyProperty.Register("LLimitState", typeof(bool), typeof(AxisIndicator), new PropertyMetadata(false));




        public bool HLimitState
        {
            get { return (bool)GetValue(HLimitStateProperty); }
            set { SetValue(HLimitStateProperty, value); }
        }

        // Using a DependencyProperty as the backing store for HLimitState.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty HLimitStateProperty =
            DependencyProperty.Register("HLimitState", typeof(bool), typeof(AxisIndicator), new PropertyMetadata(false));



    }
}
